package com.yuke.cloud.service.uac.service;

import com.yuke.cloud.common.core.support.IService;
import com.yuke.cloud.service.api.uac.dto.GroupInfoDto;
import com.yuke.cloud.service.uac.entity.AccGroup;

import java.util.List;


/**
 * Created by wg on 2018/09/15.
 */
public interface AccGroupService extends IService<AccGroup> {

    int saveGroup(AccGroup group);
    int deleteGroupById(Long groupId);
    List<AccGroup> getChildGroups(Long parentId);

    /**
     *  根据groupId递归找出父节点
     * @param groupId
     * @return
     */
    List<AccGroup> queryGroupListRecurDesc(Long groupId);

    GroupInfoDto getGroupInfoByGroupId(Long groupId);
}
